package com.topdt.jbpm.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.thx.file.model.File;


/**  
 *  @Project       : thx-workflow
 *  @Program Name  : com.topdt.jbpm.model.Template.java
 *  @Class Name    : Template
 *  @Description   : 公文模板
 *  @Author        : calonlan
 *  @Creation Date : 2015年4月13日 上午10:26:50 
 *  @ModificationHistory  
 *  Who        When          What 
 *  --------   ----------    -----------------------------------
 *  username   2015年4月13日       TODO
 */
@Entity
@Table(name = "Arc_Template_File")
public class ArcTemplate extends JbpmModel{
	
	/**
	 * serialVersionUID : TODO（用一句话描述这个变量表示什么）
	 * @since   : v1.00
	 */
	
	private static final long serialVersionUID = -7236802245573818151L;
	@Id
	@Column(name="TemplateID")
	private Integer templateId;
	
	@Column(name="RecordID")
	private String recordId;
	
	@Column(name= "filename" )
	private String name;
	
	@Column(name="filetype")
	private String type;
	
	@Column(name="filesize")
	private int size;
	
	@Column(name="filedate")
	private Timestamp fileDate;
	
	@Column(name="filepath")
	private String filePath;
	
	@Column(name="username")
	private String username;
	
	@Column(name="Descript")
	private String descript;
	
	@Lob
	@Column(name="filebody")
	private byte[] fileBody;
	
	
	private Long templateOrder;//zhangyong 20160129 模板顺序
	

	public Integer getTemplateId() {
		return templateId;
	}
	public void setTemplateId(Integer templateId) {
		this.templateId = templateId;
	}
	public String getRecordId() {
		return recordId;
	}
	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getDescript() {
		return descript;
	}
	public void setDescript(String descript) {
		this.descript = descript;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public Timestamp getFileDate() {
		return fileDate;
	}
	public void setFileDate(Timestamp fileDate) {
		this.fileDate = fileDate;
	}
	
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public byte[] getFileBody() {
		return fileBody;
	}
	public void setFileBody(byte[] fileBody) {
		this.fileBody = fileBody;
	}
	public Long getTemplateOrder() {
		return templateOrder;
	}
	public void setTemplateOrder(Long templateOrder) {
		this.templateOrder = templateOrder;
	}	

}
